package com.ds.infrastructure.hyperspace.console.model.request.environment;

import com.ds.infrastructure.hyperspace.console.entity.enums.TbPublicEnum;
import com.ds.infrastructure.hyperspace.console.entity.table.TbEnvironment;

/**
 * @author: yaozhendong
 * @create: 2019-10-29 14:19
 **/

public class ForkListEnvironmentForm {
    private ForkListEnvironmentForm() {

    }

    public static TbEnvironment toEntity(Long id) {
        TbEnvironment tbEnvironment = new TbEnvironment();
        tbEnvironment.setParentId(id);
        tbEnvironment.setGmtIsDeleted(TbPublicEnum.GMD_IS_DEL.NO.code);
        return tbEnvironment;
    }
}
